package org.slf4j.impl;

import org.slf4j.ILoggerFactory;
import org.slf4j.spi.LoggerFactoryBinder;

import com.mylogger.MyLoggerFactory;

public class StaticLoggerBinder implements LoggerFactoryBinder {

	private final static StaticLoggerBinder THIS = new StaticLoggerBinder();
	
	private static final String MY_LOGGER_FACTORY_CLASS_STR = MyLoggerFactory.class.getName();
	private static final ILoggerFactory MY_FACTORY = new MyLoggerFactory();
	
	public static StaticLoggerBinder getSingleton(){
		return THIS;
	}
	
	@Override
	public ILoggerFactory getLoggerFactory() {
		return MY_FACTORY;
	}

	@Override
	public String getLoggerFactoryClassStr() {
		return MY_LOGGER_FACTORY_CLASS_STR;
	}

}
